package com.dcsgo.socketPlay.server;

import java.util.HashMap;

/**
 * @author DCSGO
 * @version 1.0
 * 管理用于服务客户端的线程的类
 */
public class ServeClientsThreadManager {
    private static final HashMap<Integer, ServeClientsThread> threads = new HashMap<>();

    public static void remove(Integer clientId) {
        threads.remove(clientId);
    }

    public static void put(Integer clientId, ServeClientsThread serveClientsThread) {
        threads.put(clientId, serveClientsThread);
    }

    public static ServeClientsThread get(Integer clientId) {
        return threads.get(clientId);
    }
}
